package com.liusand.admin.service;

import com.liusand.xo.pojo.Category;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author LiuSha
 */
@Transactional
public interface CategoryService {
    boolean add(Category category);
    boolean deleteById(String id);
    boolean update(Category category);
    List<Category> findAll();
    Category findById(String id);
    Category findByName(String name);
}
